package com.wavercaz.freeforum.services.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wavercaz.freeforum.mappers.ReportMapper;
import com.wavercaz.freeforum.pojo.CommonSearchParam;
import com.wavercaz.freeforum.pojo.Report;
import com.wavercaz.freeforum.pojo.vo.ReportVo;
import com.wavercaz.freeforum.services.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReportServiceImpl extends ServiceImpl<ReportMapper,Report> implements ReportService {

    @Autowired
    private ReportMapper reportMapper;

    @Override
    public IPage<ReportVo> getReportVoList(CommonSearchParam commonSearchParam, Page<ReportVo> page) {
        return reportMapper.getReportVoList(commonSearchParam, page);
    }
}
